<template>
  <div>
    <el-tag v-if="enabledMenu" type="success" size="small">启用</el-tag>
    <el-tag v-else type="info" size="small">未启用</el-tag>
  </div>
</template>

<script>
export default {
  name: 'MenuStatus',
  props: {
    statusFlag: {
      type: Number,
      required: true
    }
  },
  computed: {
    enabledMenu() {
      return this.statusFlag === 1
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
